package com.lovo.pis.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.pis.dto.PowerBean;
import com.lovo.pis.service.IPowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/power")
public class PowerController {

    @Autowired
    IPowerService powerService;

    //查询所有权限
    @RequestMapping("/queryAllPower")
    public List<PowerBean> queryAllPower(){
        return powerService.queryAllPower();
    }

}
